<include file="Admin/Tpl/Public/header.html"/>
<div id="main-content" style="padding:10px; margin:10px">
    <table>
        <thead>
          <tr style="text-align:center">
            <td style="width:10%;"><div id="col_title">编号</div></td>
            <td><div id="col_title">评论内容</div></td>
            <td style="width:15%;"><div id="col_title">时间</div></td>
            <td style="width:30%;"><div id="col_title">管理</div></td>
          </tr>
        </thead>
        <tfoot>
          <tr>
            <td colspan="10">
              <div class="bulk-actions align-left"> </div>
              <div class="pagination">{$rs.show}</div>
              <div class="clear"></div>
            </td>
          </tr>
        </tfoot>
        <tbody>
            <volist name="rs.data" id="val"> 
            <tr>
                <td style='text-align:center;vertical-align:middle'>{$val.comment_id}</td>
                <td style='text-align:center;vertical-align:middle'>{$val.content}</td>
                <td style='text-align:center;vertical-align:middle'>{$val.time_insert}</td>
                <td style='text-align:center;vertical-align:middle''>
                    <a href='javascript:void(0)' onclick="javascript:if(confirm('确定删除?'))$.get('__URL__/delete_comment?comment_id={$val.comment_id}',function(data){window.location='__SELF__'},'json')" title='Delete'>删除</a>
                </td>
            </tr>
            </volist>
        </tbody>
    </table>
    </div>
</div>
<script type="text/javascript">
function for_display(suggest_id,new_dispaly){
	$.get('__URL__/suggest_display?new_display='+new_dispaly+'&suggest_id='+suggest_id,'',function(){window.location='__SELF__'});	
}
function for_resolve(suggest_id,new_dispaly){
	$.get('__URL__/suggest_resolve?suggest_resolve='+new_dispaly+'&suggest_id='+suggest_id,'',function(){window.location='__SELF__'});	
}
$("body").css("background","none");
$("#body-wrapper").css("background","none");
</script>